<template>
  <div class="button-container">
    <div class="button-box" @click="btnClick">
      {{title || '按钮'}}
    </div>
  </div>
</template>

<script>
export default {
  name: 'Button',
  props: {
    title: String
  },
  methods: {
    btnClick (){
      this.$emit('btnClick')
    }
  }
}
</script>
<style lang="scss" scoped>

.button-container{
  // padding: 0 6%;
  width: 100%;
  .button-box{
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #FF7700;
    color: #fff;
    font-size: 15px;
    border-radius: 5px;
  }
}

</style>
